<?php

use yii\widgets\ActiveForm;

?>

<!DOCTYPE html>
<html>
<head>
  <title></title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  <meta name="format-detection" content="telephone=no" />
  <link href="/css/style.css" rel="stylesheet">
  <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>

    <div class="registration-form">
         
        <div class="registration-form">
         
        
        <?php $form = ActiveForm::begin(['id'=>'form111']); ?>
 <div  id="traffic2" class="view"   style="margin-top: -17px;">
        <img class="jt" src="/img/jt.png">

	<ul style="margin-top:50%">
		

		<li>

                <span>返程方式</span>
                <input type="hidden" name="Registration[back_transportation]" value="">
                    <input type="radio" name="Registration[back_transportation]" value="飞机" <?= $model->back_transportation=='飞机'?'checked':''?>> <span>飞机</span>
                   <input type="radio" name="Registration[back_transportation]" value="火车" <?= $model->back_transportation=='火车'?'checked':''?>> <span>火车</span>
                   <input type="radio" name="Registration[back_transportation]" value="自驾" <?= $model->back_transportation=='自驾'?'checked':''?>> <span>自驾</span>

		</li>
		<li>
             <span>返程抵达城市</span>
                <input type="text" id="arrived_city" name="Registration[arrived_city]"   value="<?= $model->arrived_city?>">
					
		</li>
		<li>
                <span>返程出发地点</span>
					<select id="departure_location" name="Registration[departure_location]" aria-invalid="false">
						<option value="上秦准假日酒店" <?= $model->departure_location=='上秦准假日酒店'?'selected':''?>>上秦准假日酒店</option>
					</select>

		</li>
		<li>
                <span>返程航班号/车次</span>
					<input type="text" id="back_flight_number"  name="Registration[back_flight_number]" value="<?= $model->back_flight_number?>">
		</li>
		<li>

                <span>返程出发时间</span>
				
					<select id="registration-departure_time" class="form-control" name="Registration[departure_time]">
                    
                    <option value="5月11日" <?= $model->departure_time=='5月11日'?'selected':''?>>5月11日</option>
                    <option value="5月12日" <?= $model->departure_time=='5月12日'?'selected':''?>>5月12日</option>
                    <option value="5月13日" <?= $model->departure_time=='5月13日'?'selected':''?>>5月13日</option>
                    
                </select>
				 <input id="end" type="text" name="end[]" readonly="readonly" value=""  onchange="modify('{$k}')"    style="width:60%;overflow-x:visible;overflow-y:visible;"/>
				<select id="registration-arrival_time" class="form-control" name="Registration[arrival_time]">
                    
                    <option value="00" >00</option>
                    <option value="01" >01</option>
                    <option value="02" >02</option>
					
					<option value="03" >03</option>
                    <option value="04" >04</option>
                    <option value="05" >05</option>
					
					<option value="06" >06</option>
                    <option value="07" >07</option>
                    <option value="08" >08</option>
					
					<option value="09" >09</option>
					<option value="10" >10</option>
                    <option value="11" >11</option>
                    <option value="12" >12</option>
					
					<option value="13" >13</option>
                    <option value="14" >14</option>
                    <option value="15" >15</option>
					
					<option value="16" >16</option>
                    <option value="17" >17</option>
                    <option value="18" >18</option>
					
					<option value="19" >19</option>
                    <option value="21" >20</option>
                    <option value="21" >21</option>
                    <option value="22" >22</option>
					
					<option value="23" >23</option>
					
					
					
                    
                </select>	
					<span>时</span>
		</li>
		<li>

            <span>是否送机</span>
            <input type="hidden" name="Registration[is_send]" value="">
            <input type="radio" name="Registration[is_send]" value="是" <?= $model->is_send=='是'?'checked':''?>> <span>是</span>
            <input type="radio" name="Registration[is_send]" value="否" <?= $model->is_send=='否'?'checked':''?>> <span>否</span>

		</li>
	</ul>
</div>
        
            

        
        <input id="next" style="" value="" type="button">
		 



 <?php ActiveForm::end(); ?>
         
          
        
    </div>
         
          
        
    </div>

</body>
</html>
<script>
$('#next').click(function(){
	
	
	var tans=$("input[name='Registration[back_transportation]']:checked").val();
	if(tans=='自驾'){
		
		
	}else{
		var arrived_city=$('#arrived_city').val();if(arrived_city==''){alert('请填写返程抵达城市');return false;}
	var departure_time=$('#departure_time').val();if(departure_time==''){alert('请填写返程出发时间');return false;}
	var back_flight_number=$('#back_flight_number').val();if(back_flight_number==''){alert('请填写返程航班号/车次');return false;}
		
		
		
	}
	
	

	
	//var arrival_time=$('#arrival_time').val();if(arrival_time==''){alert('请填写抵达时间');return false;}
	$('#next').submit();
	
	
})



</script>